package com.biz.primus.ms.promotion.feign;

import com.biz.primus.base.vo.promotion.PromotionProductVo;
import com.biz.primus.product.vo.SecProductInfoReqVo;
import com.biz.primus.product.vo.SecProductInfoRespVo;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author david-liu
 */
//@FeignClient(value = "service-product", fallback = ProductFeignClientDegraded.class)
public interface ProductFeignClient {

    @PostMapping(value = "secProductInfos")
    List<SecProductInfoRespVo> secProductInfo(@RequestBody SecProductInfoReqVo secProductInfoReqVo);

    @GetMapping(value = "secProductInfo")
    SecProductInfoRespVo secProductInfo(Long productId);

    @PostMapping(value = "getPromotionProducts")
    List<PromotionProductVo> getPromotionProducts(List<Long> productIds);
}
